package org.ohuyo.libra.server.dao;

import java.util.Date;

import org.ohuyo.libra.server.model.table.LoginTicketRecord;

/**
 * 
 * @author rabbit
 * 
 */
public interface LoginTicketDao {
	void saveLoginTicketRecord(LoginTicketRecord lr);

	LoginTicketRecord getLoginRecord(long loginSeq);

	int refreshLoginTicketRecord(long loginSeq, Date updTime);

	int invalidLoginTicketRecord(final Date fromTime);

	int invalidLoginRecord(final long loginTicket);
	int getLoginTicketRecordSum();
	int getLoginTicketRecordSum(final String appCode);
}
